#include<iostream>
#include<iomanip>
using namespace std;

int main()                   //华氏度转摄氏度
{
    double f;
    cin >> f;
    double c = (5.0*(f-32))/9.0;
    cout <<fixed << setprecision(5) << c << endl;

    return 0;
}